<?php


include_once '../core/core.php';

if(!isset($_GET['id'])){
		exit('链接错误！');
	}
$id = $_GET['id'];

$sql = 'DELETE FROM `dbconfig` WHERE id='.$id;

$res = $db->del($sql);

if($res){
	//header("Location:".get_host().'/database/index.html');
	echo json_encode(['code'=>0,'msg'=>'删除成功！']);
}else{
	echo json_encode(['code'=>1,'msg'=>'删除失败！']);
}







